package com.clkj.xiuzheng.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 * @author yawang
 */
@ApiModel( value ="t_cl_productStock" )
@Table( name ="t_cl_productStock" )
public class ProductStock  implements Serializable {

    @Id
   	@Column(name = "stock_id" ,updatable = false)
	@ApiModelProperty( value="null")
	private Integer stockId;

	/**
	 * 商品Id
	 */
   	@Column(name = "product_id" )
	@ApiModelProperty( value="商品Id")
	private Integer productId;

	/**
	 * 批号
	 */
   	@Column(name = "bar_code" )
	@ApiModelProperty( value="批号")
	private String barCode;

	/**
	 * 生产日期
	 */
   	@Column(name = "product_date" )
	@ApiModelProperty( value="生产日期")
	private String productDate;

	/**
	 * 有效期
	 */
   	@Column(name = "validity" )
	@ApiModelProperty( value="有效期")
	private String validity;

	/**
	 * 仓库Id
	 */
   	@Column(name = "warehouse_id" )
	@ApiModelProperty( value="仓库Id")
	private Integer warehouseId;

	/**
	 * 公司Id
	 */
   	@Column(name = "company_id" )
	@ApiModelProperty( value="公司Id")
	private Integer companyId;

	/**
	 * 库存
	 */
   	@Column(name = "product_num" )
	@ApiModelProperty( value="库存")
	private Integer productNum;

	/**
	 * 供应商Id
	 */
   	@Column(name = "factory_id" )
	@ApiModelProperty( value="供应商Id")
	private Integer factoryId;

	/**
	 * 单位
	 */
   	@Column(name = "product_unit" )
	@ApiModelProperty( value="单位")
	private String productUnit;
    /**
     * 价格
     */
    @Column(name = "sale_price" )
    @ApiModelProperty( value="价格")
    private Double salePrice;


   	@Transient
    private String productName;
   	@Transient
   	private String formatName;
   	@Transient
   	private String factoryName;
    @Transient
    private String productImg;
    @Transient
    private String warehouseName;

  public Integer getStockId() {
    return stockId;
  }

  public void setStockId(Integer stockId) {
    this.stockId = stockId;
  }


  public Integer getProductId() {
    return productId;
  }

  public void setProductId(Integer productId) {
    this.productId = productId;
  }


  public String getBarCode() {
    return barCode;
  }

  public void setBarCode(String barCode) {
    this.barCode = barCode;
  }


  public String getProductDate() {
    return productDate;
  }

  public void setProductDate(String productDate) {
    this.productDate = productDate;
  }


  public String getValidity() {
    return validity;
  }

  public void setValidity(String validity) {
    this.validity = validity;
  }


  public Integer getWarehouseId() {
    return warehouseId;
  }

  public void setWarehouseId(Integer warehouseId) {
    this.warehouseId = warehouseId;
  }


  public Integer getCompanyId() {
    return companyId;
  }

  public void setCompanyId(Integer companyId) {
    this.companyId = companyId;
  }


  public Integer getProductNum() {
    return productNum;
  }

  public void setProductNum(Integer productNum) {
    this.productNum = productNum;
  }


  public Integer getFactoryId() {
    return factoryId;
  }

  public void setFactoryId(Integer factoryId) {
    this.factoryId = factoryId;
  }


  public String getProductUnit() {
    return productUnit;
  }

  public void setProductUnit(String productUnit) {
    this.productUnit = productUnit;
  }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getFormatName() {
        return formatName;
    }

    public void setFormatName(String formatName) {
        this.formatName = formatName;
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName;
    }

    public String getProductImg() {
        return productImg;
    }

    public void setProductImg(String productImg) {
        this.productImg = productImg;
    }

    public Double getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(Double salePrice) {
        this.salePrice = salePrice;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }
}
